home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / patches / patch2amitcp_4.3 / patch / amitcp / providers / nullmodemlogin < prev    next >
Encoding:
Text File  |  1996-03-30  |  978 b   |  45 lines

  1. /* Provider Configuration Follows:
  2. Name        NullModemLogin    ; Name for this configuration
  3. DialUp          0
  4. Interface    slip        ; Interface Name
  5. InterfaceConfig ""        ; Provider specific Sana2 options
  6. NeedSerial      1
  7. IPDynamic    0         ; 1 = YES, 0 = NO
  8. IPAddr                ; IP-address if static
  9. NSDynamic    0        ; 1 = YES, 0 = NO
  10. UseBootP    0        ; 1 = YES, 0 = NO
  11. MTU        1500        ; Provider specific
  12. Phone                ; Provider phone number (without spaces)
  13. */
  14. /* The rest is the Dialer script for this provider */
  15. options results
  16. signal on error
  17.  
  18. ShowConsole
  19. Set WaitForTimeout 10 
  20. retries = 10
  21.  
  22. Status "Asking for password..."
  23. Get PassWord 
  24.  
  25. Status "Waiting for login prompt..."
  26. do while (1)
  27.     SendLn
  28.     WaitFor! "login:"
  29.     if (result = 1) then do
  30.       Status "Logging in..."
  31.       SendLn "ppp"
  32.       Pause 2
  33.       SendLn PassWord
  34.           exit 0  /* succesfull exit */
  35.         end
  36.     retries = retries - 1
  37.     if (retries = 0 ) then exit 10
  38. end
  39.  
  40. exit 10;
  41.  
  42. error:
  43. Say "Command on line" SIGL "returned" RC ":" SerScript.LASTERROR
  44. Exit 10
  45.